<?php
class WalletModel extends Model
{
	public function newOrder()
	{ 
		$code = array('K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T');

        $osn = $code[intval(date('Y')) - 2011] . strtoupper(dechex(date('m'))) . date('d') . substr(time(), -5) . substr(microtime(), 2, 5) . sprintf('%02d', rand(0, 99));

		//$oid = date("YmdHis") . rand(0, 9) . substr($data["uid"], 0, 1) . rand(0, 9) . $data["loantype"];
		return $osn;
	}
}